Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrappers for ppanggolin all and ppanggolin msa #6645

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

thomas-lacroix
Copy link
Contributor

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

Copy link
Contributor

@bernt-matthias bernt-matthias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful. Added a few comments.

homepage_url: https://ppanggolin.readthedocs.io/en/latest/
long_description: |
Depicting microbial species diversity via a Partitioned PanGenome Graph Of Linked Neighbors.
remote_repository_url: https://github.com/labgem/PPanGGOLiN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should point to the IUC repo. Use this one for homepage_url. The readthedocs URL might be cool to mention in the tool's help section.

Copy link
Contributor

@bernt-matthias bernt-matthias Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
remote_repository_url: https://github.com/labgem/PPanGGOLiN
remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/main/tools/ppanggolin

tools/ppanggolin/.shed.yml Show resolved Hide resolved
tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_msa.xml Outdated Show resolved Hide resolved
tools/ppanggolin/ppanggolin_msa.xml Outdated Show resolved Hide resolved
@thomas-lacroix
Copy link
Contributor Author

Thanks @bernt-matthias , I implemented your suggestions, does it look good to you ? I couldn't get the validator to work for checking the consistency of the input files format, I didn't find a way to loop through multiple datasets or dataset collection and didn't find an example of such a validator. I implemented this check in the section by raising an exception. Best, Thomas

#set extension_input_files = $file.ext
#else:
#if $file.ext != $extension_input_files:
#raise Exception("All the genome files must be of similar format, either all genbank files or all fasta files.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if raising an exception is a good idea. Have you tried what happens in such a case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exception appears in the history for each output files that have failed, see screenshot enclosed.
Capture d’écran du 2025-01-14 13-50-40

#raise Exception("All the genome files must be of similar format, either all genbank files or all fasta files.")
#end if
#end if
#set base_name = str($file.element_identifier).split('.')[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if users have . in the identifiers. Maybe ".".join(str($file.element_identifier).split('.')[:-1])

tools/ppanggolin/ppanggolin_all.xml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants